package com.example.administrator.xjscc;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/12/25.
 */

public class MileGatherResultActivity extends Activity {
    private String workno;
    private TextView tv_workno,tv_quittime;
    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_milegatherresult);

        workno=this.getIntent().getStringExtra("workid");

        tv_workno=(TextView)findViewById(R.id.tv_workno);
        tv_quittime=(TextView)findViewById(R.id.tv_quittime);

        tv_workno.setText(workno);

        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        tv_quittime.setText(df.format(new Date()));
    }
}
